<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="__CONTROLLER_VIEW__/css/product.css"/>
		<script type="text/javascript">
			var ajaxUrl = "{|U:'Index/Product/getStock'}"
			var gid = "{$hd.get.gid}"
			var ajaxCart = "{|U:'Index/Carts/addCart'}"
			var ajaxComment = "{|U:'Index/Product/ajaxComment'}"
			var Root = "__ROOT__";
			var uid = "<?php echo $_SESSION['uid'] ?>"
			var gid = "{$hd.get.gid}"
			var ordersUrl = "{|U:'Index/Orders/index'}"
		</script>
		<script src="__STATIC__/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__CONTROLLER_VIEW__/js/product.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!--头部固定区-->
		<include file="__VIEW__/Common/header"/>
		<!--菜单栏end-->
		<!--页面主体begin-->
		<div id="container">
			<!--产品购买区-->
			<div class="goods">
				<div class="g_head">
					<a href="" class="brand"><img src="__ROOT__/{$goodsData.logo}"/></a>
					<h5>{$goodsData.bname}</h5>
					<span class='desc'>{$goodsData.desc}</span>
				</div>
				<!--产品图片-->
				<div class="g_img">
					<img src="__ROOT__/{$goodsData.bigpic.0}" alt="" />
				</div>
				<!--产品信息-->
				<div class="g_infor">
					<h2>{$goodsData.gname}</h2>
					<dl>
						<dt class="brand">品牌</dt>
						<dd class="b_cont">{$goodsData.bname}</dd>
					</dl>
					<foreach from="$specGroup" key="$k" value="$v">
					<dl>
						<dt class='size'>{$v.taname}</dt>
						<foreach from="$v['spec']" key="$kk" value="$vv">
						<dd class="s_cont" spec="{$kk}"><span>{$vv}</span></dd>
						</foreach>
					</dl>
					</foreach>
					<dl>
						<dt class="numb">数量</dt>
						<dd>
							<button class="n_reduce">-</button>
							<input type="text" name="num" value="1" class="n_num" />
							<button class="n_add">+</button>
							<span class="n_stock">库存<span class="nn_stock">{$goodsData.stock}</span>{$goodsData.gunit}</span>
						</dd>
					</dl>
					<div class="infor_bottom">
						<p class="price">￥<span class="tolprice">{$goodsData.shopprice}</span></p>
						<span class="s1">包邮:{$goodsData.postage}</span><span class='s2'><span class="ico"></span>联系卖家</span>
						<a href="javascript:;" class="a_buy">立即购买</a>
						<a href="javascript:;" class="a_car">加入购物车</a>
					</div>
				</div>
			</div>
			<!--产品购买区end-->
			<!--同类推荐begin-->
			<div class="goodssame">
				<div class="gs_title"><h2>同款推荐</h2><span class="b"></span></div>
				<div class="gs_cont">
					<list from="$sameGoods" name="$n" row="6">
					<a href="{|U:'Index/Product/index',array('cid'=>$n[category_cid],'gid'=>$n['gid'])}"><img src="__ROOT__/{$n.smallpic}"/></a>
					</list>
				</div>
			</div>
			<!--同类推荐end-->
			<!--商品描述与评论区begin-->
			<div class="goodsdesc">
				<div class="gd_title">
					<ul>
						<li class='_tab'><span class="s">商品描述</span><span class="line"></span></li>
						<li class='_tab'><span class="s s2">评论</span></li>
					</ul>
				</div>
				<div class="gd_cont">
					<!--商品描述begin-->
					<div class="tab_box tabb">
						<div class="gd_tag">
							<a href="">T恤</a>
							<a href="">T恤</a>
							<a href="">T恤	</a>
							<div class="dd"></div>
						</div>
						<div class="gd_img">
							{$goodsData.gdetail}
						</div>
					</div>
					<!--商品描述end-->
					<!--评论begin-->
					<div class="tab_box2 tabb">
						<div class="con_form">
							<form action="javascript:;" method="post" class="comment_form">
								<textarea name="contents" class="f_conts"></textarea>
								<input type="submit" value="添加评论" class='f_sbt' />
							</form>
						</div>
						<div class="con_cont">
							<ul>
								<foreach from="$commentData" key="$k" value="$v">
								<li>
									<a href="" class='c_face'><img src="__ROOT__/{$v.face}" alt="" /></a>
									<a href="" class='c_name'>{$v.nick}</a>
									<span class="conts">{$v.content}</span>
									<span class="c_time">{$v.cotime|date:'Y-m-d H:i:s',@@}</span>
								</li>
								</foreach>
							</ul>
						</div>
					</div>
					<!--评论end-->
				</div>
			</div>
			<!--商品描述与评论end-->
			<!--喜欢这商品的人begin-->
			<div class="liker">
				<div class="l_title"><h2>喜欢这个商品的人</h2><span class="b"></span></div>
				<div class="l_face">
					<if value="isset($likeUser)">
						<foreach from="$likeUser" key="$k" value="$v">
						<a href="{|U:'Index/User/LikeGoods',array('uid'=>$v[uid])},"><img src="__ROOT__/{$v.face}" alt="" /></a>
						</foreach>
					<else/>
					<h4>亲~~~~，喜欢就点个赞吧O(∩_∩)</h4>
					</if>
				</div>
			</div>
			<!--喜欢这商品的人end-->
		</div>
		<!--页面主体end-->
		
		
		<!--页面底部begin-->
		<div id="footer">
			<div class="foot_wrap">
				<div class="say">
					<p class="p1">“如果你的东西和大家都一样，那干嘛还设计它？”</p>
					<p class="p2">by  Philippe Starck</p>
				</div>
				<div class="foot_logo"></div>
				<p class='infor'>Copyright 2015 版权所有 浙ICP备12027496 <a href="">热门精选</a> <a href="">热门分类</a></p>
				<p class='link'>商务合作  友情链接： 想去网  蘑菇街 360安全网址 爱图购</p>
			</div>
		</div>
		<!--页面底部end-->
	</body>
</html>
